#define _GNU_SOURCE
#include <unistd.h>
#include "app_pool.h"
#include <stdio.h>
 

void *test_task(void *arg)
{
    sleep(1);
    printf("test task tid : %d\n",gettid());
    return NULL;
}

int main(int argc, char const *argv[])
{
    app_pool_init();
    printf("main thread tid : %d\n",gettid());
    app_pool_submit_task(test_task,NULL );
    app_pool_submit_task(test_task,NULL );
    app_pool_submit_task(test_task,NULL );
    app_pool_submit_task(test_task,NULL );
    app_pool_submit_task(test_task,NULL );

    sleep(100);

    app_pool_destroy();
    return 0;
}
